<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function zuida() {
            var zuida = [100, 554, 55, 40]
            var a = 100
            for (var i = 0; i <= zuida.length; i++) {
                if (zuida[i] >= a) {
                    a = zuida[i]
                }
            }
            document.write("数组中的最大值:",a)
        }
        zuida()
    </script>
</head>

<body>

</body>

</html>